package top.iridescent.controller;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@FeignClient(name = "nacos-server-provider")
public interface TestService {

    @GetMapping(value = "/echo/{str}")
    String echo(@PathVariable("str") String str);

    public static void main(String[] args) {
        List aa=new ArrayList();
        aa.add(new String("aaa"));
        aa.add(new Integer(12));
        aa.add(new HashMap<>());
        aa.add(12);
        aa.forEach(e->System.out.println(e.getClass()));
    }
}
